import request from "@/utils/request";

/**
 * 整改列表
 */
export const rectificationList = params => {
  return request({
    url: "/crm/reform/listPc",
    method: "get",
    params
  });
};

/**
 * 任务明细
 */
export const rectificationDetail = reformId => {
  return request({
    url: `/crm/reform/task/${reformId}`,
    method: "get"
  });
};

/**
 * 整改数量
 */
export const rectificationCount = customerId => {
  return request({
    url: `/crm/reform/effectiveCount/${customerId}`,
    method: "get"
  });
};

/**
 * 整改标准
 */
export const rectificationStandard = reformTypeId => {
  return request({
    url: `/crm/reform/type/detail/${reformTypeId}`,
    method: "get"
  });
};
/**
 * 查询发包基础信息、附件、付款计划、发包清单
 */
export const contractees = customerId => {
  return request({
    url: `/crm/contractees/all-info/${customerId}`,
    method: "get"
  });
};
/**
 * 查询发包明细
 */
export const queryInfoList = data => {
  return request({
    url: "/crm/contractees/queryContracteesInfoListV2",
    method: "post",
    data
  });
};